package com.hh.hibernate.util.base;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@MappedSuperclass
public class BaseOneEntity implements Serializable {
	private String id;
	private String orgCode;

	@Transient
	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	@Id
	@Column(name = "ID", nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Transient
	public String getVcreate() {
		return "null";
	}

	public void setVcreate(String vcreate) {
	}

	@Transient
	public String getVupdate() {
		return "null";
	}

	public void setVupdate(String vupdate) {
	}

	@Transient
	public String getVorgid() {
		return "null";
	}

	public void setVorgid(String vorgid) {
	}

	@Transient
	public Date getDcreate() {
		return null;
	}

	public void setDcreate(Date dcreate) {
	}

	@Transient
	public String getOrder() {
		return null;
	}

	public void setOrder(String order) {
	}

	private Date dupdate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DUPDATE", length = 7)
	public Date getDupdate() {
		return dupdate;
	}

	public void setDupdate(Date dupdate) {
		this.dupdate = dupdate;
	}
}
